<?
	//Archivo de Variables Globales
	
	$_SESSION['sys'] = array(
							"dir_estilos" => "estandar",
							"dir_estilos_ie" => "iexplorer",
							"fichero_db" => "sys/db.php",
						);
						
	//Conexion a DB
	if(file_exists($_SESSION['sys']['fichero_db']))
	{
		include($_SESSION['sys']['fichero_db']);
	}
	else if(! isset($_SESSION['instalacion']))
	{
		//Instalacion
		$_SESSION['instalacion'] = array(
										"dir" => "sys/instalacion/",
										"dir_sql" => "sql/",
										"nombre_fichero" => "instalacion.php",
										"paso" => "1",
									); 
	}
	
	//Login
	if(!isset($_SESSION['user'])){
		$_SESSION['login'] = array(
										"dir" => "sys/login/",
										"nombre_fichero" => "index.php",
									); 
	}
						
	$_SESSION['num_pag'] = 20;
?>